package com.kfm.hotel.controller;

import com.kfm.hotel.service.SysMenuService;
import com.kfm.hotel.util.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/sysmenu")
public class SysMenuController {
    @Autowired
    private SysMenuService service;

    @GetMapping("/init")
    public R init(){
        return R.ok("success",service.getAllMenusByTree());
    }
    @GetMapping("/list")
    public R list(){
        return R.ok("success");
    }
}
